package com.imooc.user.enums;

import lombok.Getter;

/**
 * ResultEnum
 *
 * @author leon.cheng
 * @date 2018/11/20 17:10
 **/
@Getter
public enum ResultEnum {
    SUCCESS(0,"成功"),

    LOGIN_FAIL(1,"登录失败"),

    ROLE_ERROR(2,"角色权限有误"),
    ;
    private Integer code;
    private String message;
    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
